#region Copyright RenGuiYou. All rights reserved.
//=====================================================
// NeatlyFrameWork
// Author:      RenGuiyou
// Feedback: 	mailto:750539605@qq.com
//=====================================================
#endregion
using Cysharp.Threading.Tasks;

namespace Neatly.Module
{
    public class ModuleBase
    {
        private string m_Name;
        protected ModuleBase() { }

        public string Name
        {
            get
            {
                if (string.IsNullOrEmpty(m_Name))
                {
                    m_Name = GetType().Name;
                }
                return m_Name;
            }
        }

        //创建初始化
        public virtual async UniTask Init() { }

        //登录加载
        public virtual void LoginLoad() { }

        public virtual void Update(float dt) { }

        public virtual void Dispose() { }
    }
}
